import Login from './login/index'
import Register from './register/index'
import Notification from './notification'
const componentList = [Login, Register, Notification]

export default {
  install: (Vue) => {
    return componentList.map(rec => {
      Vue.component(rec.name, rec.compontent)
      if (rec.actionName) {
        Vue.prototype[rec.actionName] = rec.extFun
      }
    })
  }
}
